package com.example.ecommercedemo.service;

import com.example.ecommercedemo.entity.Banners;
import com.example.ecommercedemo.utils.PageResult;


public interface IBannersService 
{
    /**
     * 查询banners
     * 
     * @param id banners主键
     * @return banners
     */
    public Banners selectBannersById(Long id);

    /**
     * 查询banners列表
     * 
     * @param banners banners
     * @return banners集合
     */
//    public List<Banners> selectBannersList(Banners banners);
    public PageResult selectBannersList(Banners banners, int pageNum, int pageSize);

    /**
     * 新增banners
     * 
     * @param banners banners
     * @return 结果
     */
    public int insertBanners(Banners banners);

    /**
     * 修改banners
     * 
     * @param banners banners
     * @return 结果
     */
    public int updateBanners(Banners banners);

    /**
     * 批量删除banners
     * 
     * @param ids 需要删除的banners主键集合
     * @return 结果
     */
    public int deleteBannersByIds(Long[] ids);

    /**
     * 删除banners信息
     * 
     * @param id banners主键
     * @return 结果
     */
    public int deleteBannersById(Long id);

}
